package com.ld.security.auth.sdk.configurer;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/**
 *
 * 简单密码匹配器
 */

public class SimpPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
     boolean b = charSequence.equals(s);
       return b;
    }
}
